package com.koomii.rabbitmq.demo.message.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//@Component
public class DemoMessageListener {
	
	@RabbitListener(queues="queue_test")
	public void receiveMessage(Message message) {
		System.out.println("收到消息："+new String(message.getBody()));
	}
}
